
add_executable(buffer_test Buffer_test.cpp)

add_executable(loop_test event001.cpp)
add_executable(loop_test2 event002.cpp)
add_executable(loop_test3 event003.cpp)
add_executable(fdChanneltest fdChanneltest.cpp)
add_executable(eventLooptest eventLooptestwithTimerfd.cpp)
add_executable(EventLoopThreadtest EventLoopThreadtest.cpp)
add_executable(HeterLookUpAndSetExtract HeterLookUpAndSetExtract.cpp )
#add_executable(loop_test event001.cpp)
add_executable(TimeQueue_EventLoop_test TimeQueue_EventLoop_test.cpp )
add_executable(runInLoop_test runInLoop_test.cpp )

add_executable(acceptorServer ./Acceptor_test_server.cpp )
add_executable(acceptorClient ./Acceptor_test_client.cpp )

add_executable(TcpServer ./TcpServer_test.cpp )
add_executable(TcpClient ./TcpServer_test_client.cpp )

add_executable(EventLoopPool_test ./EventLoopPool_test.cpp)
add_executable(Connector_test ./Connector_test.cpp)
add_executable(test_buffer_grow ./test_bufferGrow.cpp)

target_link_libraries(buffer_test PRIVATE
    LanceNet_net
    LanceNet_base
    ${Boost_FILESYSTEM_LIBRARY}
    ${Boost_SYSTEM_LIBRARY}
    ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}
)

target_link_libraries(loop_test PRIVATE
    # LanceNet_net
    # LanceNet_base
    # LanceNet_log
    # LanceNet_net
    # LanceNet_base

    LanceNet_net
    LanceNet_base
)

target_link_libraries(loop_test2 PRIVATE
    LanceNet_net
    LanceNet_base
)

target_link_libraries(loop_test3 PRIVATE
    LanceNet_net
    LanceNet_base
)

target_link_libraries(fdChanneltest PRIVATE
    LanceNet_net
    LanceNet_base
)

target_link_libraries(eventLooptest PRIVATE
    LanceNet_net
    LanceNet_base
)


target_link_libraries(EventLoopThreadtest PRIVATE
    LanceNet_net
    LanceNet_base
)

target_link_libraries(HeterLookUpAndSetExtract PRIVATE
    LanceNet_net
    LanceNet_base
)
target_link_libraries(TimeQueue_EventLoop_test PRIVATE
    LanceNet_net
    LanceNet_base
)

target_link_libraries(runInLoop_test PRIVATE
    LanceNet_net
    LanceNet_base
)

target_link_libraries(acceptorServer PRIVATE
    LanceNet_net
    LanceNet_base
)

target_link_libraries(acceptorClient PRIVATE
    LanceNet_net
    LanceNet_base
)

target_link_libraries(TcpServer PRIVATE
    LanceNet_net
    LanceNet_base
)
target_link_libraries(TcpClient PRIVATE
    LanceNet_net
    LanceNet_base
)
target_link_libraries(EventLoopPool_test PRIVATE
    LanceNet_net
    LanceNet_base
)
target_link_libraries(Connector_test PRIVATE
    LanceNet_net
    LanceNet_base
)

target_link_libraries(test_buffer_grow PRIVATE
    LanceNet_net
    LanceNet_base
)
